﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238

namespace Windows8AppsExample
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void btnHelloWorld_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(HelloWorld));
        }

        private void btnGradientBrush_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(GradientBrush));
        }

        private void btnShareBrush_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(ShareBrush));
        }

        private void btnScrollViewer_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(ScrollViewer));
        }

        private void btnBorderExample_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(BorderExample));
        }

        private void btnEventHandling_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(EventHandling));
        }

        private void btnStackPanelItem_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(StackPanelItem));
        }

        private void btnSlider_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(SliderExample));
        }

        private void btnVarietiesButton_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(VarietiesOfButton));
        }

        private void btnSimpleKeypad_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(SimpleKeypad));
        }

        private void btnCustomButton_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(CustomButtonExample));
        }

        private void btnKeyboardInput_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(KeyboardInput));
        }

        private void btnTouchAndThumb_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(TouchAndThumb));
        }

        private void btnJsonHelper_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(DemoJsonHelper));
        }

        private void btnApplicationBar_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(ApplicationBar));
        }

        private void btnAnimationBasic_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(AnimationBasic));
        }

        private void btnAnimatingAttached_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(AnimatingAttached));
        }

        private void btnForeverColorAnimation_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(ForeverColorAnimation));
        }

        private void btnSquaringTheCircle_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(SquaringTheCircle));
        }
    }
}
